﻿using Equation.Enterprise.Framework.Domain.Model;
using Equation.Enterprise.Tests.Framework.Domain.Model;

namespace Equation.Enterprise.Framework.Tests.Domain.Data.Mapping
{
    public class CategoryMapping : EntityMapping<Category>
    {
        public CategoryMapping() : base("Category")
        {
            Property(x => x.Id).HasColumnName("CategoryId");
            Property(x => x.CategoryName);
            HasMany(x => x.Products);
        }
    }
}
